<tr id='<%= request.id %>'>
  <td><%= link_to request.id, user_path(request) %></td>
  <td><%= request.name %></td>
  <td>
    <%= button_to 'Accept',
    { :action => :update,
    :controller => :friendships,
    :id => current_user.friendship_for(request),
    },
    :method => :put,
    :remote => true,
    :class => 'btn btn-mini btn-success' %>

    <%= button_to 'Reject',
    { :action => :destroy,
    :controller => :friendships,
    :id => current_user.friendship_for(request) },
    :method => :delete,
    :remote => true,
    :class => 'btn btn-mini btn-danger' %>
  </td>

</tr>
